using System;
using PHSRAG.Insight21.Common.Pages;
using PHSRAG.Utility;

namespace PHSRAG.Insight21.InsightReports
{
    /// <summary>
    /// Summary description for Report.
    /// </summary>
    public partial class Report : BasePage
    {
        protected void OnPageLoad(object sender, EventArgs e)
        {
            breadCrumb.Add(
                "Report", Settings.GetKeyValue("Header.ReportingUrl", string.Empty), Settings.GetKeyValue("BreadCrumb.SummaryPageLevel", 1));
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            ClientScript.RegisterClientScriptBlock(GetType(), "myscript", string.Format("{0}{1}{2}{3}",
                "<script type='text/javascript' src='PaxCalendar.js.aspx'></script>",
                "<script type='text/javascript' src='PaxCalendar-en.js.aspx'></script>",
                "<script type='text/javascript' src='PaxCommonJavascript.js.aspx'></script>",
                "<script type='text/javascript' src='Paxdtree.js.aspx'></script>"));

            ClientScript.RegisterClientScriptBlock(GetType(), "mystyle",
                string.Format("{0}{1}{2}",
                    "<link rel='stylesheet' type='text/css' media='all' href='PaxCalendarTheme.css.aspx' >",
                    "<link rel='stylesheet' type='text/css' media='all' href='PaxStyles.css.aspx' >",
                    "<link rel='stylesheet' type='text/css' media='all' href='Paxdtree.css.aspx' >"));
        }

        #region Web Form Designer generated code

        protected override void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
            base.OnInit(e);
        }

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Load += new System.EventHandler(this.OnPageLoad);
        }

        #endregion
    }
}